﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FloodFree.Common;
using System.Data.Entity;
using System.Web.Security;

namespace FloodFree.Web.Initializers
{
    public class EntitiesContextInitializer : DropCreateDatabaseIfModelChanges<FloodFreeContext>
    {
        protected override void Seed(FloodFreeContext context)
        {
             base.Seed(context);
             Membership.CreateUser("guilherme", "teste123","guilherme.defreitas@gmail.com");
             Roles.CreateRole("Admin");
             Roles.AddUsersToRole(new[] { "guilherme" }, "Admin"); 
        }
    }
}
